
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><title>
	炮弹走私
</title><script language="javascript" type="text/javascript"> 
            var applicationPath = "";
        </script>
<meta http-equiv="content-language" content="zh-CN" />
<link rel="icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<meta name="author" content="Hishop development team" />
<meta name="GENERATOR" content="微分销" />
<meta name="renderer" content="webkit" /><link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css" />
<script type="text/javascript" src="../admin/js/browserdetect.js"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../admin/css/bootstrap-datetimepicker.min.css" />
<script type="text/javascript" src="../admin/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="../admin/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="../admin/js/jquery.formvalidation.js"></script>
<link rel="stylesheet" href="../admin/css/common.css" />
<script src="../admin/js/Framenew.js?3.3.1bk1"></script>
<meta name="keywords" /><meta name="description" />
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <link rel="stylesheet" href="/admin/css/bootstrapSwitch.css" type="text/css" media="" />
    <script src="/admin/js/bootstrapSwitch1.js" type="text/javascript"></script>
    <style>
        #divProd .list {
            float: left;
            margin-right: 10px;
            position: relative;
        }

            #divProd .list p {
                text-align: center;
            }

            #divProd .list .glyphicon {
                position: absolute;
                right: -5px;
                top: -5px;
                display: none;
                cursor:pointer
            }

            #divProd .list:hover .glyphicon {
                display: block;
            }

        #imgAddProduct {
            float: left;
            display: block;
            margin-top: 8px;
        }
    </style>
</head>
<body class="theme theme--blue">

    <header class="ui-header navbar-fixed-top">
        <div class="ui-header-inner clearfix">
            <h1 class="ui-header-logo">
                <a href="/admin/" title="管理后台">
                    <span class="version"><i>3.4</i></span>
                </a>
            </h1>
            <nav class="ui-header-nav">
                <ul class="clearfix">
<li class="divide">|</li>
<li mid="m01"><a href="../Default.html" title="店铺">店铺</a></li>
<li mid="m02"><a href="../productonsales.html" title="商品">商品</a></li>
<li mid="m03"><a href="../manageorder.html" title="订单">订单</a></li>
<li class="divide">|</li>
<li mid="m04"><a href="../MemberGaiKuang.html" title="会员">会员</a></li>
<li class=" active" mid="m05"><a href="../DistributorSummary.html" title="分销">分销</a></li>
<li class="divide">|</li>
<li mid="m06"><a href="#" title="微信">微信</a></li>
<li mid="m07"><a href="#" title="微博">微博</a></li>
<li mid="m11"><a href="#" title="服务窗">服务窗</a></li>
<li class="divide">|</li>
<li mid="m08"><a href="#" title="营销">营销</a></li>
<li class="divide">|</li>
<li mid="m09"><a href="../Alipay.html" title="设置">设置</a></li>
<li mid="m10"><a href="../salereport.html" title="分析统计">分析统计</a></li>
</ul>

            </nav>
            <div class="ui-header-user ">
                <div class="customer-wrap">
                </div>
                <div class="dropdown hover dropdown-right">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="txt">
                            <span class="ellipsis team_name">炮弹走私</span><span class="dash"> - </span><span>admin</span>
                        </span>
                        <i class="caret"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="/admin/Settings/EditManager.aspx?UserID=1"><span class="glyphicon glyphicon-user"></span>个人信息</a></li>
                        <li><a href="/admin/Settings/EditManagerPassword.aspx?UserID=1"><span class="glyphicon glyphicon-list-alt"></span>修改密码</a></li>
                        <li class="divide"></li>
                        <li><a href="/Admin/LoginExit.aspx"><span class="glyphicon glyphicon-indent-right"></span>退出</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </header>
    <div class="container">
        <div class="app">
            <div class="app-inner clearfix">

    <div class="page-header">
        <h2>分销设置</h2>
    </div>
    <form name="aspnetForm" method="post" action="distributorapplyset.aspx" id="aspnetForm" class="form-horizontal">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExODE1NzMxOTgPZBYCZg9kFgoCAQ8WAh4EVGV4dAWECjx1bCBjbGFzcz0iY2xlYXJmaXgiPg0KPGxpIGNsYXNzPSJkaXZpZGUiPnw8L2xpPg0KPGxpIG1pZD0ibTAxIj48YSBocmVmPSIvQWRtaW4vRGVmYXVsdC5hc3B4P2ZpcnN0UGFnZT0xIiB0aXRsZT0i5bqX6ZO6Ij7lupfpk7o8L2E+PC9saT4NCjxsaSBtaWQ9Im0wMiI+PGEgaHJlZj0iL0FkbWluL2dvb2RzL3Byb2R1Y3RvbnNhbGVzLmFzcHg/Zmlyc3RQYWdlPTEiIHRpdGxlPSLllYblk4EiPuWVhuWTgTwvYT48L2xpPg0KPGxpIG1pZD0ibTAzIj48YSBocmVmPSIvQWRtaW4vdHJhZGUvbWFuYWdlb3JkZXIuYXNweD9maXJzdFBhZ2U9MSIgdGl0bGU9IuiuouWNlSI+6K6i5Y2VPC9hPjwvbGk+DQo8bGkgY2xhc3M9ImRpdmlkZSI+fDwvbGk+DQo8bGkgbWlkPSJtMDQiPjxhIGhyZWY9Ii9BZG1pbi9tZW1iZXIvTWVtYmVyR2FpS3VhbmcuYXNweD9maXJzdFBhZ2U9MSIgdGl0bGU9IuS8muWRmCI+5Lya5ZGYPC9hPjwvbGk+DQo8bGkgY2xhc3M9IiBhY3RpdmUiIG1pZD0ibTA1Ij48YSBocmVmPSIvQWRtaW4vRmVueGlhby9EaXN0cmlidXRvclN1bW1hcnkuYXNweD9maXJzdFBhZ2U9MSIgdGl0bGU9IuWIhumUgCI+5YiG6ZSAPC9hPjwvbGk+DQo8bGkgY2xhc3M9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W50UGxhY2VIb2xkZXIxJEhhc0NvbmRpdGlvbnMFJGN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkSGFzUHJvZHVjdB7DjR3AxL6znb7I6BVSBHA/vlx/" />
</div>

<div>

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="96BF7DAB" />
</div>
        <div class="mate-tabl" id="mytab">
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab" aria-expanded="false">基本设置</a></li>
                <li role="presentation" class=""><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">分销说明</a></li>
            </ul>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="profile">
                    <!--表单-->
                    <div class="form-group">
                        <label for="inputEmail3" class="col-xs-2 control-label"><em>*</em>开启三级分佣：</label>
                        <div class="col-xs-5">
                            <div class="switch1 has-switch">
                                <input name="ctl00$ContentPlaceHolder1$radioCommissionon" type="checkbox" id="ctl00_ContentPlaceHolder1_radioCommissionon" checked="checked" />
                            </div>
                            <small>开启三级分佣，成交店铺和其上两级分销商都能获得相应的佣金<br />
                                关闭三级分佣，则只有成交店铺可获得相应的佣金</small>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputEmail3" class="col-xs-2 control-label"><em>*</em>开启申请分销提醒：</label>
                        <div class="col-xs-7">
                            <div class="switch1 has-switch" id="mySwitch">
                                <input name="ctl00$ContentPlaceHolder1$radiorequeston" type="checkbox" id="ctl00_ContentPlaceHolder1_radiorequeston" checked="checked" />
                            </div>
                            <small>开启以后，普通用户在交易完成时如果满足有门槛的分销商申请条件，则会提示用户可以申请成为分销商</small>
                        </div>
                    </div>
                    <div class="form-group" id="conditionsGroup">
                        <label for="inputEmail3" class="col-xs-2 control-label"><span style="color: red">*</span>分销商申请条件：</label>
                        <div class="col-xs-5">
                            <div class="switch1 has-switch" id="DistributorApplicationCondition">
                                <input name="ctl00$ContentPlaceHolder1$radioDistributorApplicationCondition" type="checkbox" id="ctl00_ContentPlaceHolder1_radioDistributorApplicationCondition" checked="checked" />
                            </div>
                            <label for="NoConditions" id="lbbark">无门槛，可随时申请</label>
                            <div class="form-group " id="HasCondition" style="display: none;">
                                &nbsp;&nbsp;&nbsp;&nbsp;<input name="ctl00$ContentPlaceHolder1$HasConditions" type="checkbox" id="ctl00_ContentPlaceHolder1_HasConditions" value="false" /><label for="ctl00_ContentPlaceHolder1_HasConditions"> 累计消费额达到&nbsp;</label><input name="ctl00$ContentPlaceHolder1$txtrequestmoney" type="text" id="ctl00_ContentPlaceHolder1_txtrequestmoney" style="width: 100px" value="0" />&nbsp;元以后才能申请<br />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;或<br />
                                &nbsp;&nbsp;&nbsp;&nbsp;<input name="ctl00$ContentPlaceHolder1$HasProduct" type="checkbox" id="ctl00_ContentPlaceHolder1_HasProduct" value="false" checked="checked" />
                                <label for="ctl00_ContentPlaceHolder1_HasProduct">购买指定商品可申请</label>
                                <div id="addProduct" style="display: none; width: 100%; background-color: #F0F0F0; margin-left: 30px;">
                                    <br />
                                    <div class="form-inline mb10 ml10">
                                        <div class="form-group ml0">
                                            <label for="sellshop1">生效时间：</label>
                                            <input name="ctl00$ContentPlaceHolder1$calendarStartDate$txtDateTimePicker" type="text" value="2017-10-03" id="ctl00_ContentPlaceHolder1_calendarStartDate_txtDateTimePicker" class="form-control resetSize inputw150" autocomplete="off" />
<script>var ctl00_ContentPlaceHolder1_calendarStartDate_txtDateTimePicker_obj=$("#ctl00_ContentPlaceHolder1_calendarStartDate_txtDateTimePicker").datetimepicker({ format: 'yyyy-mm-dd', minView: 2 ,isadmin:true,isEnd:0});</script>
                                            至
                                <input name="ctl00$ContentPlaceHolder1$calendarEndDate$txtDateTimePicker" type="text" value="2020-12-31" id="ctl00_ContentPlaceHolder1_calendarEndDate_txtDateTimePicker" class="form-control resetSize inputw150" autocomplete="off" />
<script>var ctl00_ContentPlaceHolder1_calendarEndDate_txtDateTimePicker_obj=$("#ctl00_ContentPlaceHolder1_calendarEndDate_txtDateTimePicker").datetimepicker({ format: 'yyyy-mm-dd', minView: 2 ,isadmin:true,isEnd:0});</script>
                                        </div>
                                    </div>
                                    <div class="clearfix" style="margin-left: 10px;">
                                        <div id="divProd" class="clearfix fl">
                                            
                                        </div>
                                        <img src="../images/addProduct.png" style="display: none" id="imgAddProduct" class="fl" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2 col-xs-10">
                            <input type="submit" name="ctl00$ContentPlaceHolder1$btnSave" value="保存" onclick="return PageValid();" id="ctl00_ContentPlaceHolder1_btnSave" class="btn btn-success inputw100" />
                            <input name="ctl00$ContentPlaceHolder1$hiddProductId" type="hidden" id="ctl00_ContentPlaceHolder1_hiddProductId" value="2053" />
                        </div>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane " id="messages">
                    <div class="edit-text clearfix">
                        <div class="edit-text-left">
                            <div class="mobile-border">
                                <div class="mobile-d">
                                    <div class="mobile-header">
                                        <i></i>
                                        <div class="mobile-title">分销说明</div>
                                    </div>
                                    <div class="upshop-view">
                                        <div class="img-info">
                                            <p>基本信息区</p>
                                            <p>固定样式，显示商品主图、价格等信息</p>
                                        </div>
                                        <div class="exit-shop-info" id="fckDescriptionShow">
                                            内容区
                                        </div>
                                    </div>
                                    <div class="mobile-footer"></div>
                                </div>
                            </div>
                        </div>
                        <div class="edit-text-right">
                            <div class="edit-inner">
                                <textarea name="ctl00$ContentPlaceHolder1$fckDescription$txtMemo" rows="2" cols="20" id="ctl00_ContentPlaceHolder1_fckDescription_txtMemo" style="height:300px;width:570px;">
&lt;p&gt;&lt;img src=&quot;/utility/pics/fxs.png&quot; title=&quot;fenxiao.png&quot; alt=&quot;fenxiao.png&quot;/&gt;&lt;/p&gt;</textarea>

    <script type="text/javascript" charset="utf-8" src="/hieditor/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/hieditor/ueditor/ueditor.all.js"></script>
    <script type="text/javascript" src="/hieditor/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
    
    var um = UE.getEditor('ctl00_ContentPlaceHolder1_fckDescription_txtMemo');
</script>

                            </div>
                        </div>
                    </div>
                    <div class="footer-btn navbar-fixed-bottom">
                        <input type="submit" name="ctl00$ContentPlaceHolder1$Button1" value="保存" onclick="return checkDescription();" id="ctl00_ContentPlaceHolder1_Button1" class="btn btn-success inputw100" />

                    </div>
                </div>
            </div>
        </div>
    </form>
    <script>
        $(function () {
            //分销商申请条件按钮事件
            $('#DistributorApplicationCondition').on('switch-change', function (e, data) {
                if (data.value) {
                    $("#HasCondition").show();
                    $("#lbbark").hide();
                } else {
                    $("#HasCondition").hide();
                    $("#lbbark").show();
                };
            });

            //购买指定商品可申请
            $("#ctl00_ContentPlaceHolder1_HasProduct").on("change", function () {
                if ($(this)[0].checked) {
                    $("#addProduct").show();
                    $("#imgAddProduct").show();
                }
                else {
                    $("#addProduct").hide();
                    $("#imgAddProduct").hide();
                }
            });

            //分销商申请条件显示与隐藏
            if ($("#ctl00_ContentPlaceHolder1_radioDistributorApplicationCondition")[0].checked) {
                $("#HasCondition").show();
                $("#lbbark").hide();
            } else {
                $("#HasCondition").hide();
                $("#lbbark").show();
            };

            if ($("#ctl00_ContentPlaceHolder1_HasProduct")[0].checked) {
                $("#addProduct").show();
                $("#imgAddProduct").show();
            } else {
                $("#addProduct").hide();
                $("#imgAddProduct").hide();
            };

            //购买指定商品可申请
            $(document).on("click", "#imgAddProduct", function () {
                ShowProduct();
            });

            if ($("#ctl00_ContentPlaceHolder1_radiorequeston")[0].checked) { $("#conditionsGroup").show(); }
            if ($("#ctl00_ContentPlaceHolder1_HasProduct")[0].checked) { $("#addProduct").show(); }
            /*编辑器监听事件*/
            um.addListener('ready', function (editor) {
                $("#fckDescriptionShow").html(um.getContent());
            });
            um.addListener('selectionchange', function () {
                $("#fckDescriptionShow").html(um.getContent());
            });
            var tabnum = "0";
            $("#mytab li a").eq(tabnum).tab("show");
        });

        function checkDescription() {
            if (um.getContent() == "") {
                HiTipsShow("分销说明内容不能为空", 'error');
                return false;
            };
        }

        function ShowProduct() {
            var productIds = $("#ctl00_ContentPlaceHolder1_hiddProductId").val();
            $DialogFrame_ReturnValue = "";// 返回值
            DialogFrame("ProductSelect.aspx?productIds=" + productIds, "选择商品", 720, 500, function (rs) {
                LoadProd();
            });
        }

        function LoadProd() {
            var productList = [];
            var productHtml = "";
            $.ajax({
                url: "../VsiteHandler.ashx",
                type: "POST",
                async: false,
                dataType: "json",
                data: { "actionName": "ProdSelect" },
                success: function (result) {
                    if (result != null) {
                        $(result).each(
                            function (index, item) {
                                if (item.ThumbnailUrl60 == "")
                                    item.ThumbnailUrl60 = "/utility/pics/none.gif";

                                var name = item.ProductName;
                                if (name.length > 9)
                                    name = name.substr(0, 7) + "...";

                                productHtml += '<div class="list" id="div' + item.productid + '"><img src="' + item.ThumbnailUrl60 + '" id="product' + item.productid + '" title="' + item.ProductName + '" style="width:60px;height:60px;" /><p style="width:60px;">' + name + '</p><i class="glyphicon glyphicon-remove" onclick="DelProd(' + item.productid + ')"></i></div>';
                                productList.push(item.productid);
                            }
                        );
                    }
                },
                error: function (xmlHttpRequest, error) {
                }
            });

            $("#ctl00_ContentPlaceHolder1_hiddProductId").val(productList.join(","));
            $("#divProd").html("");
            $("#divProd").append(productHtml);
        }
        LoadProd();

        function DelProd(id) {
            $.ajax({
                url: "../VsiteHandler.ashx",
                type: "POST",
                async: false,
                dataType: "json",
                data: { "actionName": "ProdDel", "productid": id },
                success: function (result) {
                    var ids = $("#ctl00_ContentPlaceHolder1_hiddProductId").val().split(',');
                    var newIds = "";
                    for (var i = 0; i < ids.length; i++) {
                        if (ids[i] != id) {
                            newIds = newIds + ids[i] + ",";
                        }
                    }
                    if (newIds.length > 0)
                        newIds = newIds.substr(0, newIds.length - 1);

                    $("#ctl00_ContentPlaceHolder1_hiddProductId").val(newIds);
                    $("#div" + id + "").html("");

                    ShowMsg('删除成功!', true);
                },
                error: function (xmlHttpRequest, error) {
                }
            });
        }

        function PageValid() {
            if ($("#ctl00_ContentPlaceHolder1_HasConditions")[0].checked) {
                var money = $("#ctl00_ContentPlaceHolder1_txtrequestmoney").val();
                if (money != "" && money > 0)
                { }
                else {
                    ShowMsg('累计消费金额必须为大于0的整数金额', false);
                    return false;
                }
            }

            if ($("#ctl00_ContentPlaceHolder1_HasProduct")[0].checked) {
                var ProductId = $("#ctl00_ContentPlaceHolder1_hiddProductId").val();
                if (ProductId == "") {
                    ShowMsg('请选择指定商品', false);
                    return false;
                }
            }

            if ($("#ctl00_ContentPlaceHolder1_radioDistributorApplicationCondition")[0].checked) {
                if (!$("#ctl00_ContentPlaceHolder1_HasProduct")[0].checked && !$("#ctl00_ContentPlaceHolder1_HasConditions")[0].checked) {
                    ShowMsg('请选择分销商申请条件', false);
                    return false;
                }
            }

            if ($("#ctl00_ContentPlaceHolder1_HasProduct")[0].checked) {
                var startDate = $("#ctl00_ContentPlaceHolder1_calendarStartDate_txtDateTimePicker").val();
                var endDate = $("#ctl00_ContentPlaceHolder1_calendarEndDate_txtDateTimePicker").val();

                if (startDate==""||endDate == "") {
                    ShowMsg('选择了购买指定商品时，必须填写生效开始和结束时间', false);
                    return false;
                }

                if ((endDate != "" && endDate != null) && (startDate != "" || startDate != null)) {
                    var startNum = parseInt(startDate.replace(/-/g, ''), 10);
                    var endNum = parseInt(endDate.replace(/-/g, ''), 10);
                    if (startNum > endNum) {
                        ShowMsg('结束时间不能在开始时间之前', false);
                        return false;
                    }
                    var end = new Date(Date.parse(endDate.replace(/-/g, "/")));
                    if (new Date() > end) {
                        ShowMsg('结束时间不能小于或等于当前时间', false);
                        return false;
                    }
                }
            }
        }

    </script>

            </div>
        </div>
        <aside class="ui-sidebar sidebar" style="min-height: 533px;">
            <nav class="well" id="menu_left">
                <ul iid="fxi01">
<li><a href="../DistributorSummary.html" title="分销概况">分销概况</a></li>
<li class=" active"><a href="DistributorSummary.html" title="申请分销设置">申请分销设置</a></li>
<li><a href="StoreCardSet.html" title="掌柜名片设置">掌柜名片设置</a></li>
</ul>
<em class="glyphicon ico-fenxiao"></em>
<span>分销商管理</span>
<ul iid="fxi02">
<li><a href="distributorlist.html" title="分销商列表">分销商列表</a></li>
<li><a href="distributorgradelist.html" title="分销商等级">分销商等级</a></li>
<li><a href="distributorupdateset.html" title="分销商升级奖励">分销商升级奖励</a></li>
<li><a href="DistributorStatistics.html" title="销售排行榜">销售排行榜</a></li>
<li><a href="CustomDistributorStatistics.html" title="自定义排行榜">自定义排行榜</a></li>
<li><a href="branchadddistributors.html" title="批量生成账号">批量生成账号</a></li>
</ul>
<em class="glyphicon ico-yongjin"></em>
<span>佣金管理</span>
<ul iid="fxi03">
<li><a href="CommissionsAllList.html" title="佣金明细">佣金明细</a></li>
<li><a href="BalanceDrawApplyList.html" title="提现申请">提现申请</a></li>
<li><a href="BalanceDrawRequestList.html" title="提现记录">提现记录</a></li>
<li><a href="BalanceDrawRequestSet.html" title="提现设置">提现设置</a></li>
</ul>

            </nav>
        </aside>
    </div>
    <div class="mt20"></div>
</body>
</html>
